package spring.AOPDemo.BeforeAdviceTest;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class PreGreetingAspect {
    @Before("execution(* greetTo(..))") //确定方位，括号内为匹配类名或者方法名的表达🔟
    public void beforeGreeting() {
        System.out.println("欢迎光临");
    }
}
